Cleanup miscellaneous objects allocation and initialization.
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 23 Jul 2012 11:15:43 +0000 (15:15 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Mon, 23 Jul 2012 11:15:43 +0000 (15:15 +0400)
commitc18d00a3e3c6fe1b60db70e29cf7b9acdb42e79e
tree5b0ae1cd326ccb19ae2bd10760b8431063c834ab
parent687632464873d8db88c21465e4587478bd2ae47b
Cleanup miscellaneous objects allocation and initialization.
* alloc.c (allocate_misc): Change to static.  Add argument to
specify the subtype.  Adjust comment and users.
(build_overlay): New function.
* buffer.c (copy_overlays, Fmake_overlay): Use it.
* lisp.h (struct Lisp_Overlay): Remove obsolete comment.
(allocate_misc): Remove prototype.
(build_overlay): Add prototype.
src/ChangeLog
src/alloc.c
src/buffer.c
src/lisp.h